package com.ruoyi.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.market.domain.Order;

import java.util.List;

/**
 * @Entity com.ruoyi.purchase.domain.Order
 */
public interface OrderMapper extends BaseMapper<Order> {

    /**
     *查询订单列表
     * @param order 订单信息
     * @return 订单集合
     */
    public List<Order> queryList(Order order);

    /**
     * 自定义删除
     * @param orderIndent
     * @return
     */
    public boolean deleteOrder(String orderIndent);

    /**
     * 自定义添加
     * @param order
     * @return
     */
    public boolean addOrder(Order order);

    /**
     * 根据订单号查询订单
     * @param orderIndent
     * @return
     */
    public Order getByOrderIndent(String orderIndent);

    /**
     * 自定义修改
     * @param order
     * @return
     */
    public boolean modify(Order order);

}




